package com.zh.blog.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 标签VO
 * @author ZhengHao
 * Created At 2022/8/2.
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "标签对象")
public class TagVO {
    /**
     * ID
     */
    @ApiModelProperty(name = "id", value = "标签id", dataType = "Integer")
    private Integer id;

    /**
     * 标签名称
     */
    @NotBlank(message = "标签名称不能为空")
    @ApiModelProperty(name = "tagName", value = "标签名称", required = true, dataType = "String")
    private String tagName;
}